"""
@Project ：minium-test 
@File    ：login_page.py
@IDE     ：PyCharm 
@Author  ：kevin
@Date    ：2022/1/26 上午10:18 
"""

from pages.my_pages.page_info.login_page_info import LoginPageInfo


class LoginPage(LoginPageInfo):

    def __init__(self):
        super().__init__(route=self.route)

    def type_account_pwd(self, account, pwd):
        """
        输入账号密码
        :param account:
        :param pwd:
        :return:
        """
        self.type_element(self.account_input, account)
        self.type_element(self.pwd_input, pwd)

    def click_register_btn(self):
        """
        点击注册按钮
        :return:
        """
        self.click_element(self.register_btn)
